package java_methods;

public class MethodReturnValue {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		MethodReturnValue test = new MethodReturnValue();
		
		System.out.println("Max of 15, 10 is " + test.max(15,10));
		System.out.println("Max of 4, 7 is " + test.max(4, 7));
		System.out.println("Max of -4, -7 is " + test.max(-4, -7));

	}
	
	int max(int a, int b) {
		if (a > b) {
			return a;
		}else {
			return b;
		}
	}

}
